from django.conf.urls import url

from . import views


urlpatterns = [
    # 获取登录网址
    url(r'^qq/login/$', views.QQAuthURLView.as_view(), name='qqlogin'),
    # 判断是否登录
    url(r'^oauth_callback/$', views.QQQauthCallbackView.as_view(), name='oauthcallback'),
    # 获取微薄登录网址
    url(r'^sina/login/$', views.SinaLoginView.as_view(), name='oauthcallback'),
    # 绑定页面显示
    url(r'^sina_callback/$', views.SinaCallbackView.as_view(), name='oauthcallback'),
    # 绑定用户提交
    url(r'^oauth/sina/user/$', views.SinaUserView.as_view(), name='oauthcallback'),
]
